package com.atguigu.mybatis.pojo;


import java.util.List;

public class Dept {

  private long deptId;
  private String deptName;
  private List<Emp> emps;


  public long getDeptId() {
    return deptId;
  }

  public void setDeptId(long deptId) {
    this.deptId = deptId;
  }

  public String getDeptName() {
    return deptName;
  }

  public void setDeptName(String deptName) {
    this.deptName = deptName;
  }

  public Dept() {
  }

  public List<Emp> getEmps() {
    return emps;
  }

  public void setEmps(List<Emp> emps) {
    this.emps = emps;
  }

  public Dept(long deptId, String deptName) {
    this.deptId = deptId;
    this.deptName = deptName;
  }

  @Override
  public String toString() {
    return "Dept{" +
            "deptId=" + deptId +
            ", deptName='" + deptName + '\'' +
            ", emps=" + emps +
            '}';
  }
}
